//
//  SouSuo.h
//  极致荟
//
//  Created by hetao on 14-9-12.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol SouSuoDelegate;
@interface SouSuo : UIView<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate>
{
    NSArray *tabledataarr;
   }
@property (nonatomic,strong) UITableView *table;

@property (nonatomic,strong)UIView *superView;
- (IBAction)quxiao:(id)sender;
@property (nonatomic,strong)UIViewController *cont;
@property (weak, nonatomic) IBOutlet UIButton *but;
@property (nonatomic,assign)id<SouSuoDelegate> souDelegate;
@property (weak, nonatomic) IBOutlet UITextField *soutext;
- (id)initPoint:(CGPoint)point superView:(UIView *)sview concorell:(UIViewController *)controller;

///设置搜索结果数据，用于结果跟新
- (void)tableData:(NSArray *)arr;


@end

@protocol SouSuoDelegate <NSObject>

@required
///当搜索框文本变化时调用
- (void)SouSuoText:(NSString *)text;
///当点击键盘reuten建调用
- (void)SouSuoKeyRetunText:(NSString *)text;
///当选中某行时
- (void)selectTableRow:(id)data;

@end
